<div class="clients view">
<h2><?php  echo __('Mis Datos');?></h2>
	<dl>
		<dt><?php echo __('Nombre'); ?></dt>
		<dd>
			<?php echo h($client['Client']['nombre']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Cédula'); ?></dt>
		<dd>
			<?php echo h($client['Client']['cedula']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Teléfono'); ?></dt>
		<dd>
			<?php echo h($client['Client']['telefono']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Celular'); ?></dt>
		<dd>
			<?php echo h($client['Client']['celular']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Dirección'); ?></dt>
		<dd>
			<?php echo h($client['Client']['direccion']); ?>
			&nbsp;
		</dd>
	</dl>
	<br/>
	<?php echo $this->Html->link(__('Actualizar mis datos'),array('controller'=>'clients', 'action'=>'edit', $client['Client']['id']), array('class'=>'buttonGeneric'));?>
</div>

<div class="actions">
	<h3><?php echo __('Bienvenido') ?></h3>
	<h4><?php echo $client['Client']['nombre']; ?> </h4>
	<br/>
	<h5>Acciones</h5>
	<br/>
	<ul>
		<li><?php echo $this->Html->link(__('Salir'), array('controller'=>'users', 'action' => 'logout')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Mis Vehículos'); ?></h3>
	<?php if (!empty($client['Car'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Chapa'); ?></th>
		<th><?php echo __('VIM'); ?></th>
		<th><?php echo __('Marca'); ?></th>
		<th><?php echo __('Modelo'); ?></th>
		<th><?php echo __('Año'); ?></th>
		<th class="actions"><?php echo __('Acciones'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($client['Car'] as $car): ?>
		<tr>
			<td><?php echo $car['chapa']; ?></td>
			<td><?php echo $car['vim']; ?></td>
			<td><?php echo $car['marca']; ?></td>
			<td><?php echo $car['modelo']; ?></td>
			<td><?php echo $car['anho']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Ver Servicios'), array('controller' => 'cars', 'action' => 'servicesHistory', $car['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>
</div>

